﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Edu.Console.Patterns
{
    public class Singleton
    {
        private Singleton() { }
        private static Singleton instance;
        public static Singleton Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new Singleton();
                }
                return instance;
            }
        }
        public static void ResetInstance()
        {
            instance = null;
        }

        void DoSmth() { System.Console.WriteLine("Instance do..."); }
    }
}
